﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcDemo.Models
{
    public class User
    {
        public int Id { get; set; }
        public string Name { get; set; }

        public string PassWord { get; set; }

        public int Age { get; set; }

        public string Dept { get; set; }

        public IQueryable<User> GetData()
        {
            var data = new List<User>();
            for (var i = 1; i <= 30; i++)
            {
                data.Add(new User() { Id = i, Name = "同学" + i, PassWord = "123456" + i, Age = i, Dept="软件开发部" });
            }
            return data.AsQueryable();
        }
    }

}